/**
 * 
 * purpose: SCROLL PANE ITEM CONTAINER...
 * @auth: Ning
 * date: 2009-10-26
 * 
 * */

package com.components.scrollpane
{
	import flash.display.Sprite;

	public class ScrollItemContainer extends Sprite
	{
		
		//START....
		
		//PROPERTY....
		
		//CONSTRUCTOR...
		public function ScrollItemContainer()
		{
			super();
		}
		
		
		//METHODS...
		
		
		//OVERIDE GET WIDTH...
		public override function get width():Number
		{
			
			var width:Number = 0;
			
			for(var i:uint = 0;i < numChildren;i++)
			{
				
				width += getChildAt(i).width;
				
			}
			
			return width;
			
		}
		
		
		//OVERIDE GET HEIGHT...
		public override function get height():Number
		{
			
			var height:Number = 0;
			
			for(var i:uint = 0;i < numChildren;i++)
			{
				
				height += getChildAt(i).height;
				
			}
			
			return height;
						
		}
		
		//END...
		
	}
}